<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="mon">
<head>
  <meta charset="utf-8">
  <title>订单</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/layui/css/layui.css" media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<c:forEach items="${roomorder}" var="room">

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">

  <legend>订单生成</legend>
</fieldset>
<form class="layui-form" action="/addorder.do" method="post">
  <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-block">
      <input type="text"  name="username" lay-verify="title" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">房间类型</label>
    <div class="layui-input-block">
      <input type="text" disabled="disabled" lay-verify="title" autocomplete="off" value="${room.name}" class="layui-input">
    </div>
  </div>

    <%--  <div class="layui-form-item">--%>
    <%--    <label class="layui-form-label">几人间</label>--%>
    <%--    <div class="layui-input-block">--%>
    <%--      <input type="text" disabled="disabled" name="mannumber" autocomplete="off" class="layui-input">人--%>
    <%--    </div>--%>
    <%--  </div>--%>

  <div class="layui-form-item">
    <label class="layui-form-label">开始日期</label>
    <div class="layui-input-inline">
      <input type="text" name="startday" placeholder="yyyyMMdd" autocomplete="off" class="layui-input">
    </div>
  </div>


  <div class="layui-form-item">
    <label class="layui-form-label">天数</label>
    天<div class="layui-input-inline" style="width: 100px">
    <input type="text"  name="days" class="layui-input">
  </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">单价/天￥</label>
    <div class="layui-input-inline" style="width: 100px;">
      <input type="text" disabled="disabled" value="${room.price}" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">人数</label>
    人<div class="layui-input-inline" style="width: 100px">
    <input type="text"  name="mannumber" class="layui-input">
  </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">付款状态</label>
    <div class="layui-input-block">
      <input type="text"  name="status" class="layui-input">
        <%--      <input type="checkbox" name="like[write]" title="已预订">--%>
        <%--      <input type="checkbox" name="like[read]" title="未付款" checked="">--%>
        <%--      <input type="checkbox" name="like[game]" title="已付款">--%>
    </div>
  </div>

  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">留言</label>
    <div class="layui-input-block">
      <input class="layui-textarea" name="evalute"  value="">
    </div>
  </div>
  <input type="text" style="display: none;" name="price" value="${room.price}" autocomplete="off" class="layui-input">
  <input type="text" style="display: none;" name="type" value="${room.name}" autocomplete="off" class="layui-input">

  </c:forEach>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button type="submit" class="layui-btn">确认</button>
      <button type="reset" class="layui-btn layui-btn-primary"><a href="/layui/min.jsp">重置</a></button>
    </div>
  </div>
</form>
</body>
</html>
